<?php
require_once "./db_config.php";
if(isset($_POST['id'])){
    $id=$_POST['id'];
    $name=$_POST['name'];
    $dept=$_POST['dept'];
    $password=MD5($_POST['password']);
    $create=$_POST['create'];
    $sql="INSERT INTO login(id,name,dept,create_date,password) VALUE('$id','$name','$dept','$create','$password')";
    $result=mysqli_query($conn,$sql);
    if(!$result){

    }else{
        // echo 'success';
        echo $password;
    }
}
mysqli_close($conn);
?>
